package com.haixinga.commbiz.commons.vo;

import lombok.AllArgsConstructor;
import lombok.Data;

/** oss配置参数 **/
@Data
@AllArgsConstructor
public class OssConfigVO {

    private String ossKeyId;

    private String ossKeySecret;

    private String ossBucketName;

    private String ossEndpoint;

    private Long ossExpireTime;

    private Long ossMaxSize;

    public String getHttpHost(){
        return "http://" + ossBucketName + "." + ossEndpoint;
    }

    public String getHttpsHost(){
        return "https://" + ossBucketName + "." + ossEndpoint;
    }

}
